package ch5;

import java.util.Scanner;

public class Zxf12 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int i=1;
        double b;
       double a=in.nextDouble();
        while (i<=10){
            double d=in.nextDouble();
            b=a>d?a:d;
            a=b;
            System.out.println("最大数："+b);
            i++; 
        }
    }
}
